rendernode: Avoid rounding errors
authorBenjamin Otte <otte@redhat.com>
Wed, 12 Feb 2020 17:44:11 +0000 (18:44 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 13 Feb 2020 06:36:38 +0000 (07:36 +0100)
commitf0993fc881ed4fcd159504510af5fda53a156386
treee4232b12d40b6fda54903629bfd6b061ba0275ed
parent75b130ed6be14950f17d771e246505649d8ffa08
rendernode: Avoid rounding errors

Compute the pattern matrix directly instead of transforming the cairo_t.

This ensures that when node_size / texture_size is some obscure floating
point value, we don't get rounding issues from scaling by it once we
draw the texture_size rectangle.

I have no actual failure where this comes in handy, but I had written
the code anyway, so decided to keep it.
gsk/gskrendernodeimpl.c